package cn.webrx;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Set2 {
    public static void main(String[] args) {
        Set<Student> ss = new HashSet<>(List.of(
                new Student(2,"李四",55),
                new Student(1,"李四",52),
                new Student(1,"李四",51),
                new Student(1,"李四",53),
                new Student(1,"李四",54))
        );

        System.out.println(ss.size());
        System.out.println(ss);

    }
}
